package com.atqh.srrt.chicken.controller.BlogController;


import com.atqh.srrt.chicken.service.TagService;
import com.atqh.srrt.chicken.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("tags")
//@CrossOrigin
public class TagsController {
    @Autowired
    private TagService tagService;

    //   /tags/hot

    @GetMapping("/list")
    public Result findAll(){
        return tagService.findAll();
    }
}
